﻿$(document).ready(function () {
    if (checkInIframe()) {
        redirectToLogin();
    }

    $("#submitButton").click(function () {
        //return false;
        $("#masterForm").attr("action", "/Master/Login");
        $("#masterForm").submit();
    });

    $(this).bind("keypress", function (e) {
        // Enter Key
        if (e.keyCode == 13) {
            $("#submitButton").click();
        }
    });
});
